Feature extraction and classification of hyperspectral images using hierarchical network